package com.forum.common.constant;

public enum ErrorCodeEnum {
    VALID_EXCEPTION(5000 , "参数格式校验失败") ,
    NO_LOGIN_EXCEPTION(5001 , "用户未登录") ,
    NO_AUTHENTICATION(5002 , "权限认证错误") ,
    SESSION_TIMEOUT_EXCEPTION(5050 , "Session超时");

    private int code;
    private String message;

    ErrorCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
